<span class="thumbnail"><%= link_to_image(category.thumburl, { :action => 'index', :id => category.code }, { :border => 0, :alt => category.name } ) %></span>
